import request from '@/utils/request'

// 查询集采品种目录列表
export function listProcurement(query) {
  return request({
    url: '/system/procurement/list',
    method: 'get',
    params: query
  })
}

// 查询集采品种目录详细
export function getProcurement(id) {
  return request({
    url: '/system/procurement/' + id,
    method: 'get'
  })
}

// 新增集采品种目录
export function addProcurement(data) {
  return request({
    url: '/system/procurement',
    method: 'post',
    data: data
  })
}

// 修改集采品种目录
export function updateProcurement(data) {
  return request({
    url: '/system/procurement',
    method: 'put',
    data: data
  })
}

// 删除集采品种目录
export function delProcurement(id) {
  return request({
    url: '/system/procurement/' + id,
    method: 'delete'
  })
}
